<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/validate-idnumber.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.validate.custom.js"></script>
<head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
        <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

        <link rel="shortcut icon" href="favicon.ico">
        <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
        <link href="https://cdn.staticfile.org/font-awesome/4.4.0/css/font-awesome.css?v=4.4.0" rel="stylesheet">

        <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
        <link href="css/style.min.css?v=4.1.0" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br><br>
<h2 align="center">附件功能</h2>
<br>
<h4 align="center" lass="font-bold">请您先上传附件</h4>
<br>
<form action="upload" enctype="multipart/form-data" method="post" >
    <table align="center">
        <tr>
            <td>文件描述:</td>
            <td><input type="text" name="description"></td>
        </tr>
        <tr>
            <td>请选择文件:</td>
            <td><input type="file" id="file" name="file"></td>
        </tr>
        <tr >
            <td><br><input type="submit"  id="send" value="上传附件" style="font-size: 15px;margin-left: 40px;"  class="btn btn-sm btn-outline btn-info"></td>

            <td><br><a href="${ctx}/admin/user/download"  class="btn btn-sm btn-outline btn-info" style="font-size: 15px; margin-left: 50px;">下载附件</a></td>

        </tr>


    </table>

</form>



<script src="https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

<script >
    var send=document.getElementById("send");
    send.onclick=function(){
        var file=document.getElementById("file").value;
        if(file.length<1){
            alert('请上传文件');
            return false;
        }
    }
</script>

</body>
</html>



